home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / kernels / master / etc / rc_d / rc_inet2 < prev    next >
Encoding:
Text File  |  1993-08-09  |  2.4 KB  |  125 lines

  1. #! /bin/sh
  2. #
  3. # rc.inet2    This shell script boots up the entire INET system.
  4. #        Note, that when this script is used to also fire
  5. #        up any important remote NFS disks (like the /usr
  6. #        distribution), care must be taken to actually
  7. #        have all the needed binaries online _now_ ...
  8. #
  9. # Version:    @(#)/etc/rc.d/rc.inet2    2.18    05/27/93
  10. #
  11. # Author:    Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
  12. #
  13.  
  14.   # Constants.
  15.   NET="/usr/etc"
  16.   IN_SERV="lpd"
  17.   LPSPOOL="/var/spool/lpd"
  18.  
  19.   # At this point, we are ready to talk to The World...
  20.   echo "Mounting remote file systems..."
  21.   /etc/mount -a -t nfs        # This may be our /usr runtime!!!
  22.  
  23.   # Start the SYSLOG daemon.  This has to be the first server.
  24.   echo -n "INET: "
  25.   if [ -f ${NET}/syslogd ]
  26.   then
  27.     echo -n "syslogd "
  28.     ${NET}/syslogd
  29.   fi
  30.  
  31.   # Start the SUN RPC Portmapper.
  32.   # if [ -f ${NET}/rpc.portmap ]
  33.   # then
  34.   #    echo -n "portmap "
  35.   #    ${NET}/rpc.portmap
  36.   #  fi
  37.  
  38. # Old, small, hopefully working portmap:
  39. /etc/portmap
  40.  
  41.   # Start the INET SuperServer
  42.   if [ -f ${NET}/inetd ]
  43.   then
  44.     echo -n "inetd "
  45.     ${NET}/inetd
  46.   else
  47.     echo "no INETD found.  INET cancelled!"
  48.     exit 1
  49.   fi
  50.  
  51.   # Start the NAMED/BIND name server.
  52.   #  if [ -f ${NET}/named ]
  53.   #  then
  54.   #    echo -n "named "
  55.   #    ${NET}/named
  56.   #  fi
  57.  
  58.   # Start the ROUTEd server.
  59.   # if [ -f ${NET}/routed ]
  60.   # then
  61.   #    echo -n "routed "
  62.   #    ${NET}/routed -g -s
  63.   # fi
  64.  
  65.   # Start the RWHO server.
  66.   # if [ -f ${NET}/rwhod ]
  67.   # then
  68.   #    echo -n "rwhod "
  69.   #    ${NET}/rwhod -t -s
  70.   # fi
  71.  
  72.   # Start the U-MAIL SMTP server.
  73.   # if [ -f XXX/usr/lib/umail/umail ]
  74.   # then
  75.   #    echo -n "umail "
  76.   #    /usr/lib/umail/umail -d7 -bd </dev/null >/dev/null 2>&1 &
  77.   # fi
  78.  
  79.   # Start the various INET servers.
  80.   # for server in ${IN_SERV}
  81.   # do
  82.   #    if [ -f ${NET}/${server} ]
  83.   #    then
  84.   #        echo -n "${server} "
  85.   #        ${NET}/${server}
  86.   #    fi
  87.   # done
  88.  
  89.   # Start the various SUN RPC servers.
  90.   # if [ -f ${NET}/rpc.portmap ]
  91.   # then
  92.   #    if [ -f ${NET}/rpc.ugidd ]
  93.   #    then
  94.   #        echo -n "ugidd "
  95.   #        ${NET}/rpc.ugidd -d
  96.   #    fi
  97.   #    if [ -f ${NET}/rpc.mountd ]
  98.   #    then
  99.   #        echo -n "mountd "
  100.   #        ${NET}/rpc.mountd
  101.   #    fi
  102.   #    if [ -f ${NET}/rpc.nfsd ]
  103.   #    then
  104.   #        echo -n "nfsd "
  105.   #        ${NET}/rpc.nfsd
  106.   #    fi
  107.  # 
  108. #    # Fire up the PC-NFS daemon(s).
  109. #    if [ -f ${NET}/rpc.pcnfsd ]
  110. #    then
  111. #        echo -n "pcnfsd "
  112. #        ${NET}/rpc.pcnfsd ${LPSPOOL}
  113. #    fi
  114. #    #if [ -f ${NET}/rpc.bwnfsd ]
  115. #    #then
  116. #    #    echo -n "bwnfsd "
  117. #    #    ${NET}/rpc.bwnfsd ${LPSPOOL}
  118. #    #fi
  119. #
  120.  # fi
  121.  
  122.   echo
  123.   # Done!
  124.